package cn.com.surker.production.entity;

import cn.com.surker.base.BaseEntity;
import cn.com.surker.enums.StateEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 生产发货单强制生产记录
 * </p>
 *
 * @author admin
 * @since 2025-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("production_invoice_force")
public class InvoiceForce extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	public InvoiceForce() {
	}

	public InvoiceForce(Long orgId, Long lineId, Long invoiceId, Long dispatchId, Integer complete, String creator, Date createTime, String remark) {
		this.orgId = orgId;
		this.lineId = lineId;
		this.invoiceId = invoiceId;
		this.dispatchId = dispatchId;
		this.complete = complete;
		this.creator = creator;
		this.createTime = createTime;
		this.remark = remark;
		this.status = StateEnum.ENABLED.getCode();
	}

	/**
	 * 标识
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 公司ID
	 */
	private Long orgId;

	/**
	 * 生产线
	 */
	private Long lineId;

	/**
	 * 发货单
	 */
	private Long invoiceId;

	/**
	 * 派单id
	 */
	private Long dispatchId;

	/**
	 * 是否完成,0:未完成;1完成
	 */
	private Integer complete;

	/**
	 * 完成时间
	 */
	private Date comDate;


}
